package com.ruoyi.rural.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 疫苗接种信息对象 rural_vaccination
 * 
 * @author ruoyi
 * @date 2022-02-06
 */
public class RuralVaccination extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private String id;

    /** 用户id */
    @Excel(name = "用户id")
    private String userId;

    /** 疫苗接种类型 */
    @Excel(name = "疫苗接种类型")
    private String vaccinationType;

    /** 疫苗接种剂次 */
    @Excel(name = "疫苗接种剂次")
    private String vaccinationDoses;

    /** 疫苗接种时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "疫苗接种时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date vaccinationDate;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setVaccinationType(String vaccinationType) 
    {
        this.vaccinationType = vaccinationType;
    }

    public String getVaccinationType() 
    {
        return vaccinationType;
    }
    public void setVaccinationDoses(String vaccinationDoses) 
    {
        this.vaccinationDoses = vaccinationDoses;
    }

    public String getVaccinationDoses() 
    {
        return vaccinationDoses;
    }
    public void setVaccinationDate(Date vaccinationDate) 
    {
        this.vaccinationDate = vaccinationDate;
    }

    public Date getVaccinationDate() 
    {
        return vaccinationDate;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("vaccinationType", getVaccinationType())
            .append("vaccinationDoses", getVaccinationDoses())
            .append("vaccinationDate", getVaccinationDate())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
